import request from '@/utils/request'

import httpRequest from '@/utils/httpRequest'
// 查询工位配置列表
export function listNumber(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/plm/number/list'),
    method: 'get',
    params: query
  })
}

// 查询工位配置详细
export function getNumber(stationNumber) {
  return request({
    url: '/plm/number/' + stationNumber,
    method: 'get'
  })
}

// 新增工位配置
export function addNumber(data) {
  return request({
    url: '/plm/number',
    method: 'post',
    data: data
  })
}

// 修改工位配置
export function updateNumber(data) {
  return request({
    url: '/plm/number',
    method: 'put',
    data: data
  })
}

// 删除工位配置
export function delNumber(stationNumber) {
  return request({
    url: '/plm/number/' + stationNumber,
    method: 'delete'
  })
}
